@layout("/common/_container.html"){
<div class="ibox float-e-margins">
    <div class="ibox-title">
        <h5>学校编辑</h5>
    </div>
    <div class="ibox-content">
        <div class="form-horizontal" id="orgInfoForm">
            <div class="row">
                <input type="hidden" id="uploadUrl" value="${uploadUrl}">
                <div class="col-sm-12">
                    <#input id="id" name="编号" value="${org.id}" underline="true" disabled="disabled"/>
                    <#input id="name" name="学校全称" value="${org.name}" underline="true"/>
                    <#input id="shortName" name="学校简称" value="${org.shortName}" underline="true"/>
                    <#input id="areaName" name="所属区域" value="${org.areaName}" underline="true"  disabled="disabled"/>
                    <#select id="schoolings" name="学校类型" underline="true" value="${org.schoolings}">
                    @for(index in orgTypes){
                    <option value="${index.id}" ${index.id==org.schoolings?'selected':""}>${index.name}</option>
                    @}
                </#select>
                    <#input id="leaderName" name="联系人" value="${org.leaderName}" underline="true"/>
                    <#input id="phone" name="联系方式" value="${org.phone}" underline="true"/>
                    <#input id="schHost" name="二级域名" value="${org.schHost}" underline="true"/>
                <div class="form-group" id="xxmb_id" >
                    <label class="col-sm-3 control-label">学校模板：</label>
                <div class="col-sm-9">
                    @for(schModel in schModels){
                    <div style="width: 135px;height:218px;float: left; ">
                    <img alt="${schModel.name}" width='130' height='175' src="${storageUrl}/resource/${schModel.descs}/preview" >
                       @if(parseInt(schModel.value)==org.schModel){
                        <input type="radio" name="schModel" value="${schModel.value}" checked="checked"/>
                        @}else{
                        <input type="radio" name="schModel" value="${schModel.value}"/>
                        @}
                        <span >${schModel.name}</span>
                    </div>
                    @}
                </div>
                </div>
                    <#input id="address" name="学校地址" value="${org.address}" underline="true"/>
                 <#avatar id="avatar" storageUrl="${storageUrl}"  name="学校封面" avatarImg="${org.image}" underline="true"/>
                <#input id="sort" name="学校排序设置" value="${org.sort}" underline="true"/>
                </div>
            </div>

            <div class="row btn-group-m-t">
                <div class="col-sm-10">
                    <#button btnCss="info" name="提交" id="ensure" icon="fa-check" clickFun="PtOrgInfoDlg.update()"/>
                    <#button btnCss="danger" name="取消" id="cancel" icon="fa-eraser" clickFun="PtOrgInfoDlg.close()"/>
                </div>
            </div>
        </div>

    </div>
</div>
<script src="${ctxPath}/static/modular/system/ptOrg/ptOrg_info.js"></script>
<style>

</style>
@}
